<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>{{name}}</h1>
    </div>
</body>
</html>
<script src="../../node_modules/vue/dist/vue.js"></script>
<script>
    Vue.mixin({
      methods: {
        qqq(){console.log(this)}
      },
      created() {
        console.log('混入 created')
      },
    })
    let vm = new Vue({
        el:'#app',
        data:{
            name:"珠峰"
        },
        methods: {
          // qqq(){
          //   console.log(666)
          // }
        },
        mixins:{
          qqq:{}
        },
        created(){
          console.log('组件的 created')
          this.qqq()
        }
    });
</script>